namespace shuaiGe{
    export class Dehua{
        public name:string='刘德华'
        talk(){
            console.log('我是帅哥刘德华')
        }
    }
}

namespace bajie{
    export class Dehau{
        public name:string='马德华'
        talk(){
            console.log('我是二师兄马德华')
        }
    }
}

let dehua1:shuaiGe.Dehua=new shuaiGe.Dehua()

let dehua2:bajie.Dehau=new bajie.Dehau()

dehua1.talk()
dehua2.talk()